Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class com.pacist.diamonds.BezelPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--com.pacist.diamonds.BezelPanel
Subclasses:
ToolBar

public class BezelPanel
extends java.awt.Panel
Implements a Panel which has a sunken or raised border and configurable insets.

See Also:
Serialized Form

Field Summary
static int IN
          Border points inwards.
int innerShadow
          Type of shadow for the inner region.
java.awt.Insets margins
          Margins for the BezelPanel.
static int NONE
          No border.
static int OUT
          Border points outwards.
int outerShadow
          Type of shadow for the outer region.
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
BezelPanel()
          Creates and initializes a new BezelPanel object with default shadow (OUT) and default insets.
BezelPanel(int shadow)
          Creates and initializes a new BezelPanel object with the specified shadow and default insets.
BezelPanel(java.awt.Insets margins, int shadow)
          Creates and initializes a new BezelPanel object with the specified insets and shadow.
BezelPanel(int innerShadow, int outerShadow)
          Creates and initializes a new BezelPanel object with the specified inner and outer shadow, and default insets.
BezelPanel(java.awt.Insets margins, int innerShadow, int outerShadow)
          Creates and initializes a new BezelPanel object with the specified inner and outer shadow, and insets.
 
Method Summary
int getInnerShadow()
          Gets the inner shadow of the BezelPanel.
java.awt.Insets getInsets()
          Gets the insets for the BezelPanel.
int getOuterShadow()
          Gets the outer shadow of the BezelPanel.
java.awt.Insets insets()
          Deprecated.  
void paint(java.awt.Graphics g)
          This method is called to repaint the BezelPanel.
void setInnerShadow(int innerShadow)
          Sets the inner shadow of the BezelPanel.
void setInsets(java.awt.Insets margins)
          Sets the insets for the BezelPanel.
void setOuterShadow(int outerShadow)
          Sets the outer shadow of the BezelPanel.
void setShadow(int shadow)
          Sets both the inner and outer shadow to the same value.
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paint, paramString, preferredSize, printComponents, print, processContainerEvent, processEvent, removeAll, remove, remove, removeContainerListener, removeNotify, setLayout, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
No border.
See Also:
setInnerShadow(int), getInnerShadow(), setOuterShadow(int), getOuterShadow()

IN

public static final int IN
Border points inwards.
See Also:
setInnerShadow(int), getInnerShadow(), setOuterShadow(int), getOuterShadow()

OUT

public static final int OUT
Border points outwards.
See Also:
setInnerShadow(int), getInnerShadow(), setOuterShadow(int), getOuterShadow()

margins

protected java.awt.Insets margins
Margins for the BezelPanel.

innerShadow

protected int innerShadow
Type of shadow for the inner region.

outerShadow

protected int outerShadow
Type of shadow for the outer region.
Constructor Detail

BezelPanel

public BezelPanel()
Creates and initializes a new BezelPanel object with default shadow (OUT) and default insets.

BezelPanel

public BezelPanel(int shadow)
Creates and initializes a new BezelPanel object with the specified shadow and default insets.
Parameters:
shadow - The type of shadow to be used for both the inner and outer shadow.

BezelPanel

public BezelPanel(java.awt.Insets margins,
                  int shadow)
Creates and initializes a new BezelPanel object with the specified insets and shadow.
Parameters:
margins - The margins to be used for this BezelPanel.
shadow - The type of shadow to be used for both the inner and outer shadow.

BezelPanel

public BezelPanel(int innerShadow,
                  int outerShadow)
Creates and initializes a new BezelPanel object with the specified inner and outer shadow, and default insets.
Parameters:
innerShadow - The type of shadow to be used for the inner shadow.
outerShadow - The type of shadow to be used for the outer shadow.

BezelPanel

public BezelPanel(java.awt.Insets margins,
                  int innerShadow,
                  int outerShadow)
Creates and initializes a new BezelPanel object with the specified inner and outer shadow, and insets.
Parameters:
margins - The margins to be used for this BezelPanel.
innerShadow - The type of shadow to be used for the inner shadow.
outerShadow - The type of shadow to be used for the outer shadow.
Method Detail

paint

public void paint(java.awt.Graphics g)
This method is called to repaint the BezelPanel.
Parameters:
g - The graphics context to use for painting.
Overrides:
paint in class java.awt.Container

setInsets

public void setInsets(java.awt.Insets margins)
Sets the insets for the BezelPanel.
Parameters:
margins - The margins to be used for this BezelPanel.
See Also:
getInsets()

getInsets

public java.awt.Insets getInsets()
Gets the insets for the BezelPanel.
Returns:
The insets for this BezelPanel.
Overrides:
getInsets in class java.awt.Container
See Also:
setInsets(java.awt.Insets)

insets

public java.awt.Insets insets()
Deprecated. As of JDK version 1.1, replaced by getInsets().
Returns:
The insets for this BezelPanel.
Overrides:
insets in class java.awt.Container

setInnerShadow

public void setInnerShadow(int innerShadow)
Sets the inner shadow of the BezelPanel.
Parameters:
innerShadow - The type of shadow to be used for the inner shadow.
See Also:
getInnerShadow()

getInnerShadow

public int getInnerShadow()
Gets the inner shadow of the BezelPanel.
Returns:
The type of inner shadow.
See Also:
setInnerShadow(int)

setOuterShadow

public void setOuterShadow(int outerShadow)
Sets the outer shadow of the BezelPanel.
Parameters:
outerShadow - The type of shadow to be used for the outer shadow.
See Also:
getOuterShadow()

getOuterShadow

public int getOuterShadow()
Gets the outer shadow of the BezelPanel.
Returns:
The type of outer shadow.
See Also:
com.pacist.diamonds.BezelPanel#setOuterShadow()

setShadow

public void setShadow(int shadow)
Sets both the inner and outer shadow to the same value.
Parameters:
shadow - The type of shadow to be used for both the inner and outer shadow.
See Also:
setInnerShadow(int), setOuterShadow(int)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD